import request from "@/request/model/request.js";
import Method from "@/request/model/method.js";
import {callbackCode, callbackData} from "@/request/model/requestCallback.js";


export const r_s_put = (submitPutDTO) => {
    return request('/api/submit/put', Method.POST, null, submitPutDTO)
        .then(rs => callbackData(rs));
}

export const r_s_list = (userId) => {
    return request(`/api/submit/list/${userId}`, Method.GET)
        .then(rs => callbackData(rs));
}

export const r_s_get = (submitId) => {
    return request(`/api/submit/get/${submitId}`, Method.GET)
        .then(rs => callbackData(rs));
}

